Harden DSP_AudioPD adsprpcd validation and add PID helper utilities#311
Merged
abbajaj806 merged 2 commits intoqualcomm-linux:mainfrom Feb 24, 2026
Merged
Harden DSP_AudioPD adsprpcd validation and add PID helper utilities#311abbajaj806 merged 2 commits intoqualcomm-linux:mainfrom
abbajaj806 merged 2 commits intoqualcomm-linux:mainfrom
Conversation
Add reusable helpers to make process/PID handling robust across tests: - sanitize_pid(): extract a single numeric PID from noisy/multi-line output - get_one_pid_by_name(): return the first PID for a process name (pgrep/get_pid/ps fallback) - wait_pid_alive(): wait for a PID to become alive with timeout Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Improve DSP_AudioPD robustness and CI/LAVA behavior: - Add log_info before dependency checks and SKIP when dependencies are missing - Use shared PID helpers (sanitize_pid/get_one_pid_by_name/wait_pid_alive) - Prefer /proc/<pid>/wchan and accept optimized symbol suffixes (e.g. constprop) - Fall back to /proc/<pid>/stack; SKIP if neither interface is available - Kill adsprpcd only when started by this test; always write .res and exit 0 Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR improves the robustness of the Multimedia/DSP_AudioPD test and fixes the issue reported #313 , reusable PID utilities to functestlib.sh to reduce CI/LAVA flakiness.
Changes
Runner/utils/functestlib.sh
Runner/suites/Multimedia/DSP_AudioPD/run.sh